.home {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  overflow: hidden;

  .block {
    position: relative;
    display: flex;
    flex-direction: row;
    padding: var(--gap);
    border-radius: var(--border-radius-large);
    transition: transform var(--transition-duration-fast);

    &.showCollect {
      transform: translateX(calc(-100% + var(--gap)));

      .container {
        opacity: 0;
      }

      .collect {
        opacity: 1;
      }
    }
  }

  .container {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: opacity var(--transition-duration-slow);

    .qrcode {
      margin-bottom: var(--gap);
      border-radius: var(--border-radius-small);
    }

    .edit {
      all: unset;
      margin: 0;
      padding: 3px;
      width: var(--size);
      min-height: 125px;
      max-height: 290px;
      border: 1px solid #767676;
      border-radius: var(--border-radius-small);
      font-family: PingFangSC-Regular;
      font-size: 16px;
      color: #3f3f3f;
      outline: none;
      resize: vertical;
      word-break: break-all;
      box-sizing: border-box;
      transition: opacity var(--transition-duration-fast);

      &:disabled {
        opacity: 0.7;
        cursor: not-allowed;
      }
    }
  }

  .collect {
    position: absolute;
    top: var(--gap);
    right: 0;
    bottom: var(--gap);
    display: flex;
    flex-direction: column;
    padding: 3px;
    width: var(--size);
    transform: translateX(100%);
    border: 1px solid #767676;
    border-radius: var(--border-radius-small);
    opacity: 0;
    transition: opacity var(--transition-duration-slow);
    box-sizing: border-box;
  }

  .handleWrap {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
    padding: 5px;
    background-color: #fff;
    border-radius: 0 0 0 50%;
    box-shadow: 0px 0px 10px 3px #00000040;
    transform: translate(15px, -15px);
    transition: transform var(--transition-duration-fast);
    cursor: pointer;

    &:hover {
      transform: initial;
    }
  }

  &.pageMode {
    margin-top: var(--gap);

    .block {
      border: 1px solid #767676;
    }

    .collect {
      position: relative;
      top: initial;
      right: initial;
      bottom: initial;
      margin-left: var(--gap);
      width: 176px;
      transform: initial;
      opacity: initial;
    }
  }
}
